(function($){
    var socket = io.connect();
    $('#choose').submit(function(event){
        console.log($('#list').val());
        event.preventDefault();

        socket.emit('difficult', {
            niveau : $('#list').val()
        });
    });
})(jQuery);
